package com.webside.points.model;

import java.util.Date;

import com.webside.points.wechat.DateUtil;

public class PostEntity {

	/*
	 * ID
	 */
	private int id;
	/*
	 * 标题
	 */
	private String title;
	/*
	 * 作者
	 */
	private String author;
	/*
	 * 内容
	 */
	private String content;
	/*
	 * 状态
	 */
	private String status;
	/*
	 * 创建时间
	 */
	private Date createTime;
	/*
	 * 当前页
	 */
	private int curPage;
	/*
	 *排序
	 */
	private String rank;
	/*
	 * 格式化创建时间
	 */
	private String createDateFormat;
	/*
	 * 浏览数量
	 */
	private int browseNumber;
	
	private String typeId;
	
	

	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public int getBrowseNumber() {
		return browseNumber;
	}

	public void setBrowseNumber(int browseNumber) {
		this.browseNumber = browseNumber;
	}

	public int getCurPage() {
		return curPage;
	}

	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}

	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}

	public String getCreateDateFormat() {
		return createDateFormat;
	}

	public void setCreateDateFormat(String createDateFormat) {
		this.createDateFormat = createDateFormat;
	}
	
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
		this.createDateFormat = DateUtil.dateFormat(createTime);
	}

	@Override
	public String toString() {
		return "PostEntity [id=" + id + ", title=" + title + ", author=" + author + ", content=" + content
				+ ", createTime=" + createTime + "]";
	}
	
	
}
